package com.briup.sms.dao;

import com.briup.sms.entity.Category;
import com.briup.sms.entity.CategoryStats;
import com.briup.sms.entity.extend.CategoryExtend;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper {
    List<CategoryExtend> findCategoryInfo();

    List<Category> findCategoryOneLevel();

    List<CategoryExtend> findCategoryByOneLevel(Integer id);

    void addCategory(Category category);

    List<Category> findByName(String name);

    void delete(Integer id);

    Integer countCategory();

    List<CategoryStats> categoryStats();
//   Integer categoryNum();
}
